package com.mask.roll.common.code;

/**
 * @author hx
 * @since 2021/10/21 12:05 下午
 */

public enum ThirdEnums {
    /**
     * C1开头 阿里云视频点播服务相关
     */
    ALIYUN_VOD_CLIENT_ERROR("C1001","阿里云视频点播连接失败"),
    WEIXIN_NATIVE_ERROR("C1002","微信生成二维码失败"),


    /**
     * 短信第三方错误码code唯一
     */
    SMS_NORMAL("200","服务正常"),
    SMS_INVALID_ARGUMENT("400","请求参数错误"),
    SMS_UNAUTHORIZED("401","未授权或授权失败"),
    SMS_RATE_LIMIT_EXCEEDED("403","调用频率超出限制"),
    SMS_SOURCE_SERVICE_UNAVALIABLE("512","短信通道暂不可用"),



    /**
     * C2开头 短信相关
     */
    SMS_SEND_SUCCESS("C2001","发送短信成功"),
    SMS_SEND_FAILED("C2001","发送短信成功")
    ;

    ThirdEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private final String code;
    private final String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
